//
//  SDCommons.h

//
//  Created by 胡金东 on 15/3/19.
//  Copyright © 2015年 胡金东. All rights reserved.//


#import "BSMacros.h"


// 友盟相关常量设置
// 分享的官方url
#define kUMShareUrl         @"http://ylwx.info/index.html"
// appKey
#define kUMAppKey           @"55f1429967e58e7a6e0008f1"
// 微信appId，appSecret
#define kWXAppId            @"wx84b907482e993841"
#define kWXAppSecret        @"4575c9357013baa3638377eaeb90322e"
// QQ空间的AppId，Appkey
#define kQQAppId            @"1104820408"
#define kQQAppKey           @"Yon9JzBcoVgRNdNc"

// 导航栏背景颜色
#define greenTextColor RGBCOLOR(76, 178, 12)
#define lightGrayTextColor RGBCOLOR(170, 170, 170)
#define grayTextColor RGBCOLOR(91, 92, 91)
#define sectionBackgroundColor RGBCOLOR(234, 234, 234)

// 基础链接
//#define BASEURL @"http://shangdiao.wang/"
//#define BASEURL @"http://222.73.117.158/"
#define BASEURL @"http://120.26.220.45:8080/uzone/"

// 接口超时时间
#define CS_TIMEOUT  30.0

// 用户登录后保存token的key
#define kDeviceToken @"sos_device_token"
#define defaultAuthChannelCode  @"1002"
#define defaultAuthChannelUser  @"smartO"
#define defaultAuthChannelPwd  @"000000"
#define defaultAuthChannelDevice @"ios"

// 字体适配
#define FONTSIZE_LEVEL1  IS_IPHONE_6_PLUS ? 22 : (IS_IPHONE_6 ? 20 : 18)
#define FONTSIZE_LEVEL2  IS_IPHONE_6_PLUS ? 20 : (IS_IPHONE_6 ? 18 : 16)
#define FONTSIZE_LEVEL3  IS_IPHONE_6_PLUS ? 18 : (IS_IPHONE_6 ? 16 : 14)
#define FONTSIZE_LEVEL4  IS_IPHONE_6_PLUS ? 16 : (IS_IPHONE_6 ? 14 : 10)
#define FONTSIZE_LEVEL5  IS_IPHONE_6_PLUS ? 14 : (IS_IPHONE_6 ? 12 : 10)


#define BASECOLOR [UIColor getColorWithHexNumber:@"3092C5"]
#define BACKCOLOR [UIColor getColorWithHexNumber:@"F4F4F4"]
#define TEXTCOLOR [UIColor getColorWithHexNumber:@"929292"]
#define TESTCOLOR [UIColor redColor]
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define FRAME CGRectMake(x, y, w, h)

//默认分页大小
#define pageSize 10

/**
 * 获取App的版本号
 */
#define APP_VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]